package com.homework04;

/*
某班级学生的Java考试成绩是：
99, 100, 62, 15, 48, 65, 98, 99, 5, 59.5, 75; 请统计及格学生总人数。
*/
public class work07 {
    public static void main(String[] args) {
        double[] arr = {99, 100, 62, 15, 48, 65, 98, 99, 5, 59.5, 75};
        int count = 0;
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] >= 60) {
                count++;
            }
        }
        System.out.println("班级学生的Java考试有" + count + "人及格！");
    }
}
